package com.zjitc.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Create By IntelliJ IDEA
 *
 * @author:
 * @create-Time: 2017/11/23  11:31
 */
public class Orders  implements Serializable {
    private String oid;
    private Date ordertime;
    private Double total;
    private Integer state;
    private String address;
    private String name;
    private String telephone;
    private String uid;
    private String tradeno;
    private User user;
    private List<Orderitems> orderitems;

  public Orders(String oid, Date ordertime, Double total, Integer state, String address,
      String name, String telephone, String uid, String tradeno, User user,
      List<Orderitems> orderitems) {
    this.oid = oid;
    this.ordertime = ordertime;
    this.total = total;
    this.state = state;
    this.address = address;
    this.name = name;
    this.telephone = telephone;
    this.uid = uid;
    this.tradeno = tradeno;
    this.user = user;
    this.orderitems = orderitems;
  }

  public Orders() {
  }

  public String getOid() {
    return oid;
  }

  public void setOid(String oid) {
    this.oid = oid;
  }

  public Date getOrdertime() {
    return ordertime;
  }

  public void setOrdertime(Date ordertime) {
    this.ordertime = ordertime;
  }

  public double getTotal() {
    return total;
  }

  public void setTotal(double total) {
    this.total = total;
  }

  public Integer getState() {
    return state;
  }

  public void setState(Integer state) {
    this.state = state;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getTelephone() {
    return telephone;
  }

  public void setTelephone(String telephone) {
    this.telephone = telephone;
  }

  public String getUid() {
    return uid;
  }

  public void setUid(String uid) {
    this.uid = uid;
  }

  public String getTradeno() {
    return tradeno;
  }

  public void setTradeno(String tradeno) {
    this.tradeno = tradeno;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public List<Orderitems> getOrderitems() {
    return orderitems;
  }

  public void setOrderitems(List<Orderitems> orderitems) {
    this.orderitems = orderitems;
  }

  @Override
  public String toString() {
    return "Orders{" +
        "oid='" + oid + '\'' +
        ", ordertime=" + ordertime +
        ", total=" + total +
        ", state=" + state +
        ", address='" + address + '\'' +
        ", name='" + name + '\'' +
        ", telephone='" + telephone + '\'' +
        ", uid='" + uid + '\'' +
        ", tradeno='" + tradeno + '\'' +
        ", user=" + user +
        ", orderitems=" + orderitems +
        '}';
  }
}
